home *** CD-ROM | disk | FTP | other *** search
- ISHFT(3I) Last changed: 1-6-98
-
-
- NNAAMMEE
- IISSHHFFTT - Performs a logical shift
-
- SSYYNNOOPPSSIISS
- IISSHHFFTT (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, and IRIX systems
-
- SSTTAANNDDAARRDDSS
- Fortran 90
-
- DDEESSCCRRIIPPTTIIOONN
- The IISSHHFFTT intrinsic function performs a logical shift. It accepts the
- following arguments:
-
- _i Must be of type integer.
-
- _s_h_i_f_t
- Must be of type integer. The absolute value of _s_h_i_f_t must be
- less than or equal to BBIITT__SSIIZZEE((_i)).
-
- IISSHHFFTT is an elemental function. The name of this intrinsic cannot be
- passed as an argument.
-
- RREETTUURRNN VVAALLUUEESS
- The result type and type parameter are the same as _i. The result has
- the value obtained by shifting the bits of _i by _s_h_i_f_t positions. If
- _s_h_i_f_t is positive, the shift is to the left; if _s_h_i_f_t is negative, the
- shift is to the right; and if _s_h_i_f_t is zero, no shift is performed.
- Bits shifted out from the left or from the right, as appropriate, are
- lost. Zeros are shifted in from the opposite end. The bit model
- defines the interpretation of an integer value as a sequence of bits.
- For more information on the bit model, see the MMOODDEELLSS(3I) man page.
-
- EEXXAAMMPPLLEESS
- IISSHHFFTT ((33,, 11)) has the result 6.
-
- SSEEEE AALLSSOO
- MMOODDEELLSS(3I)
-
- _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-2138, for the
- printed version of this man page.
-
-